/*************************************************************************

FrameworkEx\System.Diagnostics.Debug.cpp

	-by Miles Chen (stainboyx@hotmail.com) 2008-12-27

*************************************************************************/

#pragma once

#include "commdef-x-int.h"

N System{N Diagnostics{N Debug{

	void AssertEx(LPSTR lpszMsg, ...)
	{
		char buffer[MAX_CHAR];

		va_list ap;
		va_start(ap, lpszMsg);
		vsprintf(buffer, lpszMsg, ap);
		va_end(ap);

		Assert(TRUE, buffer);
	}
	void AssertEx(LPWSTR lpszMsg, ...)
	{
		wchar_t buffer[MAX_CHAR];

		va_list ap;
		va_start(ap, lpszMsg);
		vswprintf(buffer, lpszMsg, ap);
		va_end(ap);

		Assert(TRUE, buffer);
	}

}}}